package com.ruoyi.mobile.service;

import java.util.List;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.mobile.domain.UserInfo;
import com.ruoyi.mobile.model.request.QuestionaireRequest;
import com.ruoyi.mobile.model.request.UserQuestionnaireRequest;
import com.ruoyi.mobile.model.vo.QuestionContentVo;
import com.ruoyi.mobile.model.vo.QuestionaireVo;

/**
 * 收集用户信息Service接口
 * 
 * @author ruoyi
 * @date 2022-10-06
 */
public interface IUserInfoService 
{
    public List<QuestionaireVo> selectListByUserId(QuestionaireRequest questionaireRequest);

    public Integer insertUserInfo(int userId, UserQuestionnaireRequest userQuestionnaireRequest) throws JsonProcessingException;

    public UserInfo selectByUserIdAndSubType(int userId, int type, int subType);

    public Integer updateByUserIdAndType(int userId, int id, UserQuestionnaireRequest userQuestionnaireRequest) throws JsonProcessingException;

    public int deleteByIds(Integer[] ids, Integer userId);

    public int deleteById(Integer id, Integer userId);

    public List<QuestionContentVo> selectContentsByType(Integer type);
}
